How many ways can an argument be passed to a subroutine and explain them?
1785
28-Mar-2011
Amit Singh
28-Mar-2011- passing by value
- passing by reference.
Passing by value: This method copies the value of an argument into the formal parameter of the subroutine.Passing by reference: In this method, a reference to an argument (not the value of the argument) is passed to the parameter.